package com.office.task.controller;

import com.office.common.core.controller.BaseController;
import com.office.common.core.domain.AjaxResult;
import com.office.task.domain.TaskSystem;
import com.office.task.service.TaskSystemService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: 柒月
 * @date: 2025/7/14 下午4:02
 * @version: 1.0
 */
@RestController
@RequestMapping("/task/system")
public class TaskSystemController extends BaseController {

    @Resource
    private TaskSystemService taskSystemService;

    @GetMapping("/month/count")
    public AjaxResult monthCount() {
        TaskSystem taskSystem = taskSystemService.getMonthCount();
        return AjaxResult.success(taskSystem);
    }

}
